﻿<classes:MSHPhoneApplicationPage 
    x:Class="WP7Client.UserInterface.Pages.ActivationPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.WP7"
    xmlns:classes="clr-namespace:WP7Client.Classes"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="MSHPhoneApplicationPage_Loaded">
    <classes:MSHPhoneApplicationPage.Resources>
        <classes:BooleanToInvertedBooleanConverter x:Key="BooleanToInvertedBooleanConverter"/>
    </classes:MSHPhoneApplicationPage.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">

        <controls:Pivot Title="MY SOCIAL HUB" IsEnabled="{Binding Loading, Converter={StaticResource BooleanToInvertedBooleanConverter}}">
            <controls:PivotItem Header="Activation">
                <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                    <StackPanel Orientation="Vertical">
                        <TextBlock Text="Activation code:"/>
                        <TextBox Text="{Binding Path=ActivationCode, Mode=TwoWay}" InputScope="TelephoneNumber"/>
                        <Button Content="Activate" HorizontalAlignment="Left" cmd:ButtonBaseExtensions.Command="{Binding ActivateCommand}"/>
                        <StackPanel Orientation="Vertical">
                            <TextBlock Text="No activation code?" FontSize="20" HorizontalAlignment="Left" Height="30"/>
                            <HyperlinkButton Content="Get a new code!" FontSize="20" HorizontalAlignment="Left" NavigateUri="/UserInterface/Pages/ResendActivationPage.xaml" />
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </controls:PivotItem>
        </controls:Pivot>

    </Grid>

</classes:MSHPhoneApplicationPage>
